package edu.kjxy.worker0312;

public class worker13 {

	public static void main(String[] args) {
		double n = 100.0;
		int count = 10;
		double mid = 0.0;
		double sum = n;
		while(count > 0) {
			mid = 1.0 * n / 2;
			sum += mid;
			n /= 2;
			count--;
		}
		System.out.println(sum + " " + mid);
	}

}
